import request from "@/utils/request";

// 查询设备保养列表
export function listByzx(query) {
  return request({
    url: "/equipment/byzx/list",
    method: "get",
    params: query,
  });
}

// 查询设备保养详细
export function getByzx(ids) {
  return request({
    url: "/equipment/byzx/" + ids,
    method: "get",
  });
}

// 新增设备保养
export function addByzx(data) {
  return request({
    url: "/equipment/byzx",
    method: "post",
    data: data,
  });
}

// 修改设备保养
export function updateByzx(data) {
  return request({
    url: "/equipment/byzx",
    method: "put",
    data: data,
  });
}

// 删除设备保养
export function delByzx(ids) {
  return request({
    url: "/equipment/byzx/" + ids,
    method: "delete",
  });
}
// 删除图片
export function delImgs(data) {
  return request({
    url: "/system/upload/delete ",
    method: "post",
    data,
  });
}
// 导出设备保养
export function exportByzx(query) {
  return request({
    url: "/equipment/byzx/export",
    method: "get",
    params: query,
  });
}
// /equipment/service/getList
// 获取保养项目所有列表

export function equipmentGetList(query) {
  return request({
    url: "/equipment/service/getList",
    method: "get",
    params: query,
  });
}